package com.aiti.lulian.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.util.Date;
import java.util.Map;

@Data
@TableName(value="card_template_style_field", autoResultMap = true)
public class CardTemplateStyleField {
    @TableId(value = "base_id", type = IdType.ASSIGN_ID)
    private String baseId;

    @TableField("base_name")
    private String baseName;

    @TableField("field_name")
    private String fieldName;

    @TableField("employee_edit_flag")
    private Boolean employeeEditFlag;

    @TableField(value="extra_info",typeHandler = JacksonTypeHandler.class)
    //@TableField(typeHandler = FastjsonTypeHandler.class)
    private Map<String, Object> extraInfo;

    @TableField("field_type")
    private String fieldType;

    @TableField("hidden_flag")
    private Boolean hiddenFlag;

    @TableField("required_flag")
    private Boolean requiredFlag;




    @TableField("style_id")
    private String styleId;

    private String logo;

    @TableField("template_id")
    private String templateId;

    @TableField("base_create_time")
    private Date baseCreateTime;

    @TableField("base_update_time")
    private Date baseUpdateTime;


    @TableField("is_delete")
    private Integer isDelete;

    @TableField("creator")
    private String creator;

    @TableField("update_by")
    private String updateBy;

    @TableField("cutom_flag")
    private String cutomFlag;

    //0横板 1竖版
    private String templateType;

    //标签id
    private String labelId;

}